#!/usr/bin/env bash

#HOST=localhost
HOST=park.ali.com
PORT=9090

URL=${HOST}:${PORT}


# echo "home url"
# curl http://${URL}/

# echo "report event"
# curl -X POST -H "Content-Type: application/json" http://${URL}/reportRecv \
#   -d '{
#     "code": 200,
#     "msg": "ok",
#     "data": {
#       "id": "event_001",
#       "event": "car_in",
#       "created": 1740991080,
#       "data": {
#         "car_number": "粤A12345",
#         "car_color": "blue"
#       }
#     }
#   }'

echo "report event2"
curl -X POST -H "Content-Type: application/json" "http://${URL}/reportRecv?kkk=vvv&aaa=bbb" \
  -d '{
    "code": 200,
    "msg": "ok",
    "data": {
      "id": "event_001",
      "event": "car_in",
      "created": 1740991080,
      "data": {
        "car_number": "粤A12345",
        "car_color": "blue"
      }
    }
  }'  